package com.gcph.zhuoba.player.activitys;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.gcph.zhuoba.R;
import com.gcph.zhuoba.main.common.BaseActivity;
/**
 * 干货1的详情页面
 * @author zhanghejie
 */
public class Ganhuo1DetailActivity extends BaseActivity {
	private Button btn_return;
	private Button btn_ganhuo_preview1;
	private Button btn_ganhuo_preview2;
	private Button btn_ganhuo_preview3;
	private Button btn_ganhuo_preview4;
	private Button btn_ganhuo_begin1;
	private Button btn_ganhuo_begin2;
	private Button btn_ganhuo_begin3;
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_ganhuo_detail1);
		
		//返回按钮
		btn_return=(Button)this.findViewById(R.id.btn_return);
		btn_return.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				finish();
			}
		});
		
		
		//预览1
		btn_ganhuo_preview1=(Button)this.findViewById(R.id.btn_ganhuo_preview1);
		btn_ganhuo_preview1.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(Ganhuo1DetailActivity.this, PlayerPreviewActivity.class);
				intent.putExtra("method", "801");
				intent.putExtra("data", "1-1");
				startActivity(intent);
			}
		});
		
		//预览2
		btn_ganhuo_preview2=(Button)this.findViewById(R.id.btn_ganhuo_preview2);
		btn_ganhuo_preview2.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(Ganhuo1DetailActivity.this, PlayerPreviewActivity.class);
				intent.putExtra("method", "801");
				intent.putExtra("data", "1-2");
				startActivity(intent);
			}
		});
		
		//预览3
		btn_ganhuo_preview3=(Button)this.findViewById(R.id.btn_ganhuo_preview3);
		btn_ganhuo_preview3.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(Ganhuo1DetailActivity.this, PlayerPreviewActivity.class);
				intent.putExtra("method", "801");
				intent.putExtra("data", "1-3");
				startActivity(intent);
			}
		});
		
		//预览4
		btn_ganhuo_preview4=(Button)this.findViewById(R.id.btn_ganhuo_preview4);
		btn_ganhuo_preview4.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(Ganhuo1DetailActivity.this, PlayerPreviewActivity.class);
				intent.putExtra("method", "801");
				intent.putExtra("data", "1-4");
				startActivity(intent);
			}
		});
		
		
		
		//开始1
		btn_ganhuo_begin1=(Button)this.findViewById(R.id.btn_ganhuo_begin1);
		btn_ganhuo_begin1.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(Ganhuo1DetailActivity.this, GanhuoBeginActivity.class);
				intent.putExtra("data", "1-1");
				startActivity(intent);
			}
		});
		//开始1
		btn_ganhuo_begin2=(Button)this.findViewById(R.id.btn_ganhuo_begin2);
		btn_ganhuo_begin2.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(Ganhuo1DetailActivity.this, GanhuoBeginActivity.class);
				intent.putExtra("data", "1-2");
				startActivity(intent);
			}
		});
		//开始1
		btn_ganhuo_begin3=(Button)this.findViewById(R.id.btn_ganhuo_begin3);
		btn_ganhuo_begin3.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(Ganhuo1DetailActivity.this, GanhuoBeginActivity.class);
				intent.putExtra("data", "1-3");
				startActivity(intent);
			}
		});
		
	}
	
}